﻿<phone:PhoneApplicationPage 
    x:Class="QuickTasks.LinkSettings"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:my="clr-namespace:Microsoft.Advertising.Mobile.UI;assembly=Microsoft.Advertising.Mobile.UI"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="800" d:DesignWidth="480"
    shell:SystemTray.IsVisible="False"
    Loaded="PhoneApplicationPage_Loaded">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot">
        <Grid.Background>
            <ImageBrush ImageSource="/QuickTaskBgImages/BackGround1.png"/>
        </Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel Orientation="Horizontal"  Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle" Text="QUICK TASKS - LINKS SETTINGS" Style="{StaticResource PhoneTextNormalStyle}"/>
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <TextBlock Grid.Row="0"  Text="Refresh Rate" FontSize="30" Margin="12,0,0,0" />
            <StackPanel Orientation="Horizontal" Grid.Row="1">
                <TextBox Text="0" x:Name="tbxRefreshRate" InputScope="Number" Width="100" Margin="0,0,10,0" TextChanged="tbxRefreshRate_TextChanged"/>
                <TextBlock Text="minutes"  VerticalAlignment="Center" FontSize="24"/>
            </StackPanel>
            <TextBlock Grid.Row="2"  FontSize="24" Text="Refresh rate can be between 0 and 60 minutes, based on this refresh rate the browser will be refreshed." TextWrapping="Wrap"/>
            <StackPanel Grid.Row="3" Margin="0,30,0,0" Orientation="Horizontal">
                <toolkit:ToggleSwitch  Name="lockToggleSwitch" Header="Run App Under Lock screen" Content="Off" IsChecked="false" Height="111" HorizontalAlignment="Left" Margin="1,0,0,0" VerticalAlignment="Top" Width="453" Checked="lockToggleSwitch_Checked" Unchecked="lockToggleSwitch_Unchecked" />
            </StackPanel>
          


        </Grid>
        <StackPanel Name="adstackpanel" Grid.Row="2" VerticalAlignment="Bottom" Margin="-15,32,0,0"></StackPanel>
    </Grid>
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar.getstarted.png" Text="get started" Click="ApplicationBarstartButton_Click"/>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>
